package com.cib.process.chat.core.selector;

import com.cib.process.bean.IvrRequestServer;
import com.cib.process.bean.QueryRequestParam;
import com.cib.process.chat.core.AbstractActionSeletor;
import com.cib.process.constant.CommChatConstants;

import java.util.Map;

/**
 * 1006：通知IVR转接满意度调查
 * 1007：通知IVR进行转接人工服务
 * 1008：通知IVR转到IVR传统流程首层
 * 1009：通知IVR进行挂机释放
 * 1010:????
 */
public class IvrOutActionSelector  extends AbstractActionSeletor {
    private boolean collectConversation =true;
    @Override
    public void paramSelector(IvrRequestServer ivrRequestServer, QueryRequestParam queryRequestParam) {
        String lastAction = ivrRequestServer.getLastAction();
        if (CommChatConstants.getOutActions().contains(lastAction)){
            handleLastResult(ivrRequestServer,queryRequestParam);

        }

    }

    @Override
    public void setCollectConversation(QueryRequestParam queryRequestParam) {
        queryRequestParam.setCollectConversation(collectConversation);
    }

    @Override
    protected String setQueryText(Map<String, String> lastResult) {
        return "";
    }
}
